﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;


namespace GiaoTrinhEPU.Repositories.Interfaces
{
    public interface IWarehouseRepository
    {
        void CreateWarehouse(Warehouse item);
        void UpdateWarehouse(Warehouse item);
        void DeleteWarehouse(int id);

        IEnumerable<Warehouse> ListWarehouses(bool cacheEnabled = true);
        Warehouse GetWarehouseById(int id);

        bool HasNameExisted(String name);
        bool HasNameDuplicated(int id, String name);
    }
}
